﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MemberListLookUp.aspx.cs" Inherits="SME.Food.Tricon.Web.AdminJS.UserManage.MemberListLookUp" %>
<%@ Import Namespace="System.Data" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
</head>
<body>
    <form id="pagerForm" method="post" action="UserManage/MemberListLookUp.aspx">
	<input type="hidden" name="SearchMemName" value="<%=SearchMemName %>">
	<input type="hidden" name="SearchIdCardsNum" value="<%=SearchIdCardsNum %>" />
	<input type="hidden" name="pageNum" value="<%=PageNum %>" />
	<input type="hidden" name="numPerPage" value="<%=NumPerPage %>" />
   </form>
    <div class="pageHeader">
    <form id="MemberListLookUp" onsubmit="return navTabSearch(this);" action="UserManage/MemberListLookUp.aspx"
        method="post">
        <div class="searchBar">
           <table class="searchContent">
              <tr>
                 <td>
                    员工姓名：<input type="text" size="17" name="SearchMemName" value="<%=SearchMemName %>" />
                 </td>
                 <td>
                    身份证号：<input type="text" size="17" name="SearchIdCardsNum" value="<%=SearchIdCardsNum %>" />
                 </td>
                <td>
                    <select  name="MemberSex" >
                        <option value="">性别</option>
                        <option value="0" <%=MemberSex=="0"?"selected":"" %>>女</option>
                        <option value="1" <%=MemberSex=="1"?"selected":"" %>>男</option>
                    </select>
                </td>
              </tr>
           </table>
            <div class="subBar">
                <ul>
                    <li>
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit">
                                    检索</button>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </form>
</div>
    <div class="pageContent">
    <table class="table" nowrapTD="false" width="100%" layouth="141">
        <thead>
            <tr>
                <th align="center" >员工编号
                </th>
                <th>
                    员工姓名
                </th>
                <th align='center' >
                    性别
                </th>
                <th align='center' >
                    身份证号
                </th>
                <th  align="center">
                    职位
                </th>
                <th>
                    操作
                </th>
            </tr>
        </thead>
        <tbody>
             <% if (Table != null)
            {
                foreach (DataRow dr in Table.Rows)
                { %>

                   <tr  lookupgroup="empLookup" ondblclick="$.bringBack({MemNo:'<%=dr["Mem_No"] %>', MemName:'<%=dr["Mem_Name"] %>'});">
                    <td align='center'><%=dr["Mem_No"] %></td>
                    <td><%=dr["Mem_Name"] %></td>
                    <td align='center'><%=dr["Mem_Sex"].ToString()=="0"?"女":"男" %></td>
                    <td align='center'><%=dr["Mem_Card"] %></td>
                    <td align='center'><%=dr["Mem_Type"].ToString()=="0"?"管理者":"普通员工" %></td>
                    <td align='center'>
                        <a class="btnSelect" href="javascript:$.bringBack({MemNo:'<%=dr["Mem_No"] %>', MemName:'<%=dr["Mem_Name"] %>'})" title="查找带回"></a>
				    </td>
                   </tr>
        <% }
                } %>
          </tbody>
    </table>
    <div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select  name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="20">20</option>
				<option value="50">50</option>
				<option value="100">100</option>
				<option value="200">200</option>
			</select>
			<span>条，共${totalCount}条</span>
		</div>
		
		<div class="pagination" targetType="navTab" totalCount="200" numPerPage="20" pageNumShown="10" currentPage="1"></div>

	</div>
</div>
  
</body>
</html>
